#ifndef __BUOLA_WIDGETS_CTRANSPARENTRESIZEBAR_H__
#define __BUOLA_WIDGETS_CTRANSPARENTRESIZEBAR_H__

#include <buola/widgets/cwidget.h>
#include <buola/utility/usignal.h>

namespace buola { namespace gui {

class CTransparentResizeBar : public CWidget
{
public:
    CTransparentResizeBar();
    ~CTransparentResizeBar();

protected:
////////////// Event handling //////////////
    void OnButtonDown(const CMouseEvent &pE);
    void OnButtonUp(const CMouseEvent &pE);
    void OnMouseMove(const CMouseEvent &pE);

public:
    USignal<void(const CPoint_d&)> sResized;
    
protected:
////////////////// data //////////////////
    bool mResizing;
    CPoint_d mResizePoint;

};

/*namespace gui*/ } /*namespace buola*/ }

#endif
